package ying.listener;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;

/**
 * ClassName: MyServletContextListener
 * Package: ying.listener
 * Description:
 *
 * @Author 刘英杰
 * @Create 2024/10/6 16:31
 * @Version 1.0
 */
public class MyServletContextListener implements ServletContextListener {


    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("ServletContext被创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("ServletContext被销毁");
    }
}
